package com.zyx.nettypro.netty.sticky.solver;

import java.util.Arrays;

/**
 * @author Yaxi.Zhang
 * @since 2021/9/24 10:33
 */
public class MessageProtocol {
    /**
     * 关键, 传输信息的长度
     */
    private int length;
    private byte[] content;

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "MessageProtocol{" +
                "length=" + length +
                ", content=" + Arrays.toString(content) +
                '}';
    }
}
